/*
 * GameObject.h
 *
 *  Created on: 08/01/2012
 *      Author: Graciela
 */

#include "../graphics/SpriteInstance.h"

#ifndef GAMEOBJECT_H_
#define GAMEOBJECT_H_

// Very simple game object
class GameObject {
private:
	int x, y;
	SpriteInstance * sprite;

public:
	GameObject();
	virtual ~GameObject();

	void translate(int x, int y);
	void setPosition(int x, int y);

	int getX();
	int getY();

	virtual void update() = 0;
	SpriteInstance *getSpriteInstance() const;
	void setSpriteInstance(SpriteInstance *sprite);
};

#endif /* GAMEOBJECT_H_ */
